package com.grupoassa.utils;

import java.util.StringTokenizer;
import java.util.UUID;

public class IdGenerator {
	public static String getGlobalInstanceId() {
		String uuid;
		char c;
		do {
			uuid = UUID.randomUUID().toString();
			c = uuid.charAt(0);
		}while (Character.isDigit(c));
		
		StringTokenizer tokenizer = new StringTokenizer(uuid, "-");
		StringBuffer buffer = new StringBuffer();
		while(tokenizer.hasMoreElements()) {
			buffer.append(tokenizer.nextToken());
		}
		return buffer.toString();
	}
}
